package com.ruoyi.common.minio;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Licl
 */
@Component
@ConfigurationProperties(prefix = "minio-config")
public class MinIoConfig {

    private static String endpoint;
    private static String accessKey;
    private static String secretKey;
    private static String bucketName;
    private static String keyPrefix;
    private static String filePrefix;

    public static String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        MinIoConfig.endpoint = endpoint;
    }

    public static String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        MinIoConfig.accessKey = accessKey;
    }

    public static String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        MinIoConfig.secretKey = secretKey;
    }

    public static String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        MinIoConfig.bucketName = bucketName;
    }

    public static String getKeyPrefix() {
        return keyPrefix;
    }

    public void setKeyPrefix(String keyPrefix) {
        MinIoConfig.keyPrefix = keyPrefix;
    }

    public static String getFilePrefix() {
        return filePrefix;
    }

    public void setFilePrefix(String filePrefix) {
        MinIoConfig.filePrefix = filePrefix;
    }
}
